<div>
	<yu-panel title="应用系统授权管理">
		<yu-xform related-table-name="refTable" form-type="search" v-model="searchFormdata" label-width="120px">
			<yu-xform-group :column="4">
				<yu-xform-item label="应用系统代码" placeholder="应用系统代码" ctype="input" name="appCode"></yu-xform-item>
				<yu-xform-item label="应用系统名称" placeholder="应用系统名称" ctype="input" name="appName"></yu-xform-item>
				<yu-xform-item label="用户ID" placeholder="用户ID" ctype="input" name="userId"></yu-xform-item>
				<yu-xform-item label="用户名称" placeholder="用户名称" ctype="input" name="userName"></yu-xform-item>
			</yu-xform-group>
		</yu-xform>
		<yu-toolBar>
			<yu-button @click="addFn" v-if="addFnButton">新增</yu-button>
			<!--<yu-button @click="modifyFn" v-if="updateFnButton">修改</yu-button>-->
			<yu-button @click="deleteFN" v-if="deleteFnButton">删除</yu-button>
		</yu-toolBar>
		<yu-xtable ref="refTable" row-number :data-url="dataUrl" selection-type="radio">
			<yu-xtable-column label="应用系统编码" prop="appCode"></yu-xtable-column>
			<yu-xtable-column label="应用系统名称" prop="appName">
			</yu-xtable-column>
			<yu-xtable-column label="用户ID" prop="userId"></yu-xtable-column>
			<yu-xtable-column label="用户名称" prop="userName"></yu-xtable-column>
			<yu-xtable-column label="备注" prop="remark"></yu-xtable-column>
		</yu-xtable>
	</yu-panel>
	<yu-dialog :title="viewTitle" :visible.sync="dialogVisible">
		<yu-xform ref="refForm" v-model="formdata" label-width="120px">
			<yu-xform-group>
				<yu-xform-item label="应用系统" ctype="select" :options="appList" :disabled="!addFlag" name="appCode" rules="required"></yu-xform-item>
				<yu-xform-item label="用户ID" ctype="input" name="userId" :colspan="12" :disabled="!addFlag" rules="required" readOnly icon='search'
				 @click="searchUser"></yu-xform-item>
				<yu-xform-item label="用户名称" ctype="input" name="userName" :colspan="12" disabled></yu-xform-item>
				<yu-xform-item label="备注" ctype="textarea" name="remark" :colspan="24" :rows="3" maxlength="240"></yu-xform-item>
			</yu-xform-group>
		</yu-xform>
		<div class="yu-grpButton">
			<yu-button v-show="cancelBtnShow" @click="cancelFn">取消</yu-button>
			<yu-button type="primary" v-if="!saveDisabled" @click="saveFn" :disabled="saveDisabled">保存</yu-button>
			<yu-button type="primary" v-if="saveDisabled" @click="saveFn" :disabled="saveDisabled">保存</yu-button>
		</div>
	</yu-dialog>

	<yu-xdialog title="用户选择" :visible.sync="objectUserTabVisible" width="800px">
		<el-form-q ref="queryObjUserRef" :field-data="queryObjUserFields" :buttons="queryObjUserButtons"></el-form-q>
		<yu-xtable ref="refObjUserTable" row-number :data-url="objDataUserUrl" :base-params="baseParam" selection-type="radio">
			<yu-xtable-column label="登录代码" prop="loginCode"></yu-xtable-column>
			<yu-xtable-column label="员工号" prop="userCode"></yu-xtable-column>
			<yu-xtable-column label="用户名称" prop="userName"></yu-xtable-column>
			<yu-xtable-column label="所属部门" prop="dptName"></yu-xtable-column>
			<yu-xtable-column label="邮箱" prop="userEmail"></yu-xtable-column>
			<yu-xtable-column label="电话" prop="userMobilephone"></yu-xtable-column>
		</yu-xtable>
	</yu-xdialog>

</div>